const {
  $util,
} = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },
  onShow() {
    let wxData = wx.getStorageSync('qyUserInfo') || {};
    this.setData(wxData);
    this.setData({
      isSaaS: wx.getStorageSync('isSaaS'),
    })
    $util.request({
      url: 'entry/wxapp/partyman.mine.partymaninfo',
      data: {},
      showLoading: false,
      success: (res) => {
        this.setData({
          realname: res.data.realname,
          avator: res.data.avator,
          phone: res.data.phone,
          certificateid: res.data.certificateid,
          type: res.data.type,
          pbirthday: res.data.pbirthday,
          typestr: res.data.typestr,
          duty: res.data.duty,
          operating: res.data.operating,
          showlogout: res.showlogout,
        });
      },
    });
  },
  navigateTo(e) {
    const {
      url,
    } = e.currentTarget.dataset;
    wx.navigateTo({
      url,
    });
  },
});